#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
    int A,B;
    cin >> A >> B;
    cout << A+B-16 << endl;
    cout << A+B -3 << endl;
    cout << A+B -1 << endl;
    cout << A+B -0 << endl;
}